package br.com.jdbc;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class ConnectionFactory {

	public Connection getConnection(){
		System.out.println("Conectado ao Banco!");
		try{
			return DriverManager.getConnection("jdbc:mysql://localhost/fj21","root","");
		} catch(SQLException e) {
			throw new RuntimeException(e);
		}
	}
}
